package com.mryang.ladder;

import java.util.Scanner;

/**
 * @ClassName L1_024
 * @Description TODO 某一天的后天是星期几
 * @Author Genius
 * @Date 2021/2/15 14:16
 */
public class L1_024 {
    public static void main(String[] args) {
        Scanner scr = new Scanner(System.in);
        int weekDay = scr.nextInt();

        if (weekDay==6) {
            System.out.println("1");
        }else if (weekDay==7) {
            System.out.println("2");
        }else{
            System.out.println(weekDay+2);
        }

    }
}
